package com.example.Ex3Demo;

import android.view.View;
import android.widget.TextView;
public class MyClick implements View.OnClickListener {
    private TextView textView;
    public MyClick(TextView txt) {

        textView=txt;
    }
    @Override
    public void onClick(View view) {
               textView.setText("使用外部的类点击按钮");
    }
}
